package com.huc.design.behavior.observer.casedemo;

/**
 * @author huc
 * @version 1.0
 * @note 学生监听类
 * @date 2021/10/8 13:49
 */
public class StudentEventListener implements BellEventListener {
    @Override
    public void hander(RingEvent e) {
        if (e.getSound()){
            System.out.println("同学们，上课了...");
        }else{
            System.out.println("同学们，下课了...");
        }
    }
}
